home *** CD-ROM | disk | FTP | other *** search
/ Freelog 115 / FreelogNo115-MaiJuin2013.iso / Internet / AvantBrowser / asetup.exe / _data / webkit / resources.pak / Unnamed File 000036.txt < prev    next >
Text File  |  2013-04-03  |  2KB  |  105 lines

  1. /* Copyright (c) 2012 The Chromium Authors. All rights reserved.
  2.  * Use of this source code is governed by a BSD-style license that can be
  3.  * found in the LICENSE file. */
  4.  
  5. /* This file holds CSS that should be shared, in theory, by all user-visible
  6.  * chrome:// pages. */
  7.  
  8. @import url("chrome://resources/css/widgets.css");
  9.  
  10.  
  11. /* Prevent CSS from overriding the hidden property. */
  12. [hidden] {
  13.   display: none !important;
  14. }
  15.  
  16. html.loading * {
  17.   -webkit-transition-delay: 0 !important;
  18.   -webkit-transition-duration: 0 !important;
  19. }
  20.  
  21. body {
  22.   cursor: default;
  23.   margin: 0;
  24. }
  25.  
  26. p {
  27.   line-height: 1.8em;
  28. }
  29.  
  30. h1,
  31. h2,
  32. h3 {
  33.   -webkit-user-select: none;
  34.   font-weight: normal;
  35.   /* Makes the vertical size of the text the same for all fonts. */
  36.   line-height: 1;
  37. }
  38.  
  39. h1 {
  40.   font-size: 1.5em;
  41. }
  42.  
  43. h2 {
  44.   font-size: 1.3em;
  45.   margin-bottom: 0.4em;
  46. }
  47.  
  48. h3 {
  49.   color: black;
  50.   font-size: 1.2em;
  51.   margin-bottom: 0.8em;
  52. }
  53.  
  54. a {
  55.   color: rgb(17, 85, 204);
  56.   text-decoration: underline;
  57. }
  58.  
  59. a:active {
  60.   color: rgb(5, 37, 119);
  61. }
  62.  
  63. /* Elements that need to be LTR even in an RTL context, but should align
  64.  * right. (Namely, URLs, search engine names, etc.)
  65.  */
  66. html[dir='rtl'] .weakrtl {
  67.   direction: ltr;
  68.   text-align: right;
  69. }
  70.  
  71. /* Input fields in search engine table need to be weak-rtl. Since those input
  72.  * fields are generated for all cr.ListItem elements (and we only want weakrtl
  73.  * on some), the class needs to be on the enclosing div.
  74.  */
  75. html[dir='rtl'] div.weakrtl input {
  76.   direction: ltr;
  77.   text-align: right;
  78. }
  79.  
  80. html[dir='rtl'] .favicon-cell.weakrtl {
  81.   -webkit-padding-end: 22px;
  82.   -webkit-padding-start: 0;
  83. }
  84.  
  85. /* weakrtl for selection drop downs needs to account for the fact that
  86.  * Webkit does not honor the text-align attribute for the select element.
  87.  * (See Webkit bug #40216)
  88.  */
  89. html[dir='rtl'] select.weakrtl {
  90.   direction: rtl;
  91. }
  92.  
  93. html[dir='rtl'] select.weakrtl option {
  94.   direction: ltr;
  95. }
  96.  
  97. /* WebKit does not honor alignment for text specified via placeholder attribute.
  98.  * This CSS is a workaround. Please remove once WebKit bug is fixed.
  99.  * https://bugs.webkit.org/show_bug.cgi?id=63367
  100.  */
  101. html[dir='rtl'] input.weakrtl::-webkit-input-placeholder,
  102. html[dir='rtl'] .weakrtl input::-webkit-input-placeholder {
  103.   direction: rtl;
  104. }
  105.